package com.ncsc.lmis.model;
// Generated Feb 25, 2014 11:44:39 PM by Hibernate Tools 3.4.0.CR1


import java.math.BigDecimal;
import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * FinTransDetail generated by hbm2java
 */
@Entity
@Table(name="fin_trans_detail"
    ,catalog="lmis"
)
public class FinTransDetail  implements java.io.Serializable {


     private FinTransDetailId id;
     private FinTrans finTrans;
     private Short accNo;
     private Short flagDrCr;
     private BigDecimal jnAmtDr;
     private BigDecimal jnAmtCr;
     private Short statusPosted;

    public FinTransDetail() {
    }

	
    public FinTransDetail(FinTransDetailId id, FinTrans finTrans) {
        this.id = id;
        this.finTrans = finTrans;
    }
    public FinTransDetail(FinTransDetailId id, FinTrans finTrans, Short accNo, Short flagDrCr, BigDecimal jnAmtDr, BigDecimal jnAmtCr, Short statusPosted) {
       this.id = id;
       this.finTrans = finTrans;
       this.accNo = accNo;
       this.flagDrCr = flagDrCr;
       this.jnAmtDr = jnAmtDr;
       this.jnAmtCr = jnAmtCr;
       this.statusPosted = statusPosted;
    }
   
     @EmbeddedId

    
    @AttributeOverrides( {
        @AttributeOverride(name="finTransRecNo", column=@Column(name="FIN_TRANS_REC_NO", nullable=false) ), 
        @AttributeOverride(name="finTransSeqNo", column=@Column(name="FIN_TRANS_SEQ_NO", nullable=false) ) } )
    public FinTransDetailId getId() {
        return this.id;
    }
    
    public void setId(FinTransDetailId id) {
        this.id = id;
    }

@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="FIN_TRANS_REC_NO", nullable=false, insertable=false, updatable=false)
    public FinTrans getFinTrans() {
        return this.finTrans;
    }
    
    public void setFinTrans(FinTrans finTrans) {
        this.finTrans = finTrans;
    }

    
    @Column(name="ACC_NO")
    public Short getAccNo() {
        return this.accNo;
    }
    
    public void setAccNo(Short accNo) {
        this.accNo = accNo;
    }

    
    @Column(name="FLAG_DR_CR")
    public Short getFlagDrCr() {
        return this.flagDrCr;
    }
    
    public void setFlagDrCr(Short flagDrCr) {
        this.flagDrCr = flagDrCr;
    }

    
    @Column(name="JN_AMT_DR", precision=15)
    public BigDecimal getJnAmtDr() {
        return this.jnAmtDr;
    }
    
    public void setJnAmtDr(BigDecimal jnAmtDr) {
        this.jnAmtDr = jnAmtDr;
    }

    
    @Column(name="JN_AMT_CR", precision=15)
    public BigDecimal getJnAmtCr() {
        return this.jnAmtCr;
    }
    
    public void setJnAmtCr(BigDecimal jnAmtCr) {
        this.jnAmtCr = jnAmtCr;
    }

    
    @Column(name="STATUS_POSTED")
    public Short getStatusPosted() {
        return this.statusPosted;
    }
    
    public void setStatusPosted(Short statusPosted) {
        this.statusPosted = statusPosted;
    }




}


